﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Home_problem.aspx.cs" Inherits="LongQuanWeb.Admin.Home_problem" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Styles/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table cellspacing="1" cellpadding="3" width="96%" align="center" class="gv_css">
        <tr>
            <td class="UserTableRow2" width="33%" colspan="3">
                <div align="left">
                    <asp:Button ID="btn_add" runat="server" Text="新增常见问题" CausesValidation="False" OnClick="btn_add_Click" />
                    <span class="red">(前台仅显示最近10项)</span>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gv_active" runat="server" Width="100%" AutoGenerateColumns="False"
                    CssClass="gv_css" OnRowCommand="gv_new_RowCommand">
                    <RowStyle CssClass="row" />
                    <AlternatingRowStyle CssClass="alterRow" />
                    <Columns>
                        <asp:TemplateField HeaderText="编号">
                            <ItemTemplate>
                                <%#Eval("EquityID")%>
                            </ItemTemplate>
                            <HeaderStyle Width="20%"></HeaderStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="问题标题">
                            <ItemTemplate>
                                <%#Eval("EquityTitle")%>
                            </ItemTemplate>
                            <HeaderStyle Width="60%"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:Button ID="del" CommandName="del" CommandArgument='<%#Eval("EquityID")%>' runat="server"
                                    Text="删除" OnClientClick='return confirm("确认要删除吗？")' />
                                <asp:Button ID="up" CommandName="up" CommandArgument='<%#Eval("EquityID")%>' runat="server"
                                    Text="修改" />
                            </ItemTemplate>
                            <HeaderStyle Width="20%"></HeaderStyle>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                    CurrentPageIndex="1" EnableTheming="true" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageSize="10" PrevPageText="上一页"
                    ShowPageIndexBox="Never" UrlPaging="true" Width="100%">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    <br />
    </form>
</body>
</html>
